<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="../js/style.css" />
<title>湖北包装网会员管理系统</title></head>
<body>
<script type="text/javascript">
function pass_confirm()
  {
  
       var alluser = document.getElementById("alluser");
       var peruser = document.getElementById("peruser");
       var comuser = document.getElementById("comuser");
       var note_message = document.getElementById("note_message").value;
       var user_ids;
       if(alluser.checked){
       		user_ids="all"
       }else{
       		if(peruser.checked){
       			if(comuser.checked){
       				user_ids = "p&c";
       			}else{
       				user_ids = "p";
       			}
       		}else{
       			if(comuser.checked){
       				user_ids = "c";
       			}else{
       				user_ids = "n";
       			}
       		}
       }
       if(user_ids=='n'){
       		alert("您未选择任何用户!");
       		return;
       }
       if(note_message==''){
       		alert("请填写通知内容!");
       		return;
       }
       window.location.href="../note/sendPartUser.action?user_ids="+user_ids+"&note_message="+note_message;
       setTimeout("alert('通知已成功发送')",1000)

    }
  
  
  
</script>

<jsp:include page="adminTitle.jsp" flush="true"></jsp:include>
<div id="mainpage">
  <div class="bodytitle">
    <div class="bodytitleleft"></div>
    <div class="bodytitletxt">通知发送</div>
    <!-- <div class="bodytitleright"></div>
    <div class="bodytitletxt2"><a href="../manage/addAdmin.jsp">新增</a></div> -->
  </div>
 <form action="../user/searchMoneyInfoList.action" method="post">
  	<table align="center" id="webusertable" >
  		<tr>
  			<td style="font-size: 12px">
  			网站会员:<input type="checkbox" id="alluser"/>
  			个人会员:<input type="checkbox" id="peruser"/>
			企业会员:<input type="checkbox" id="comuser"/>
  			</td>
  			<td style="font-size: 12px">
			</td>
			<td style="font-size: 12px">
			</td>
  			
  		</tr>
  		<tr>
  			<td  style="font-size: 12px">通知内容：
  			<textarea rows="5" cols="80" id="note_message"></textarea>
  			</td>
  			<td></td>
  			<td></td>
  		</tr>
  		<tr>
  			<td><input type="button" value="发送" onclick="pass_confirm()"/><s:property value="tips"/> </td>
  			<td></td>
  			<td></td>
  		</tr>
  	</table>
  	</form>
  	
</div>
</body>
</html>